package dao;

import java.util.ArrayList;

public interface AdminDao<E> {
    int insert(E e);

    ArrayList<E> selectByUsernameAndPassword(String username, String password);

    int deleteById(int id);
    int deleteByUsername(String username);

    int updatePasswordById(int id, String password);

    ArrayList<E> selectAll();

    ArrayList<E> selectAdminByUsername(String username);


}
